package com.skt.common_hr.common.memberselector
{
	import flash.events.Event;

	public class MemberSelectorEvent extends Event
	{
		public static const SELECTED_MEMBER:String 	= "selectedMember";
		public static const SELECTED_ORG:String 	= "selectOrg";
		
		public var member:MemberVO;
		public var orgCode:String;
		public function MemberSelectorEvent(type:String, param:*)
		{
			super(type, false, false);
			if(type==SELECTED_MEMBER) { 
				this.member = param;
			}
			else {
				this.orgCode = param;
			}
		}
		
		override public function clone():Event
		{
			if(type==SELECTED_MEMBER) {
				return new MemberSelectorEvent(type, member);	
			}
			else {
				return new MemberSelectorEvent(type, orgCode);
			}
		}
	}
}